import Vue from 'vue';
import Main from './Login.vue';
let LoginConstructor = Vue.extend(Main);

let instance;
let instances = [];
let seed = 1;

const Login = function (options) {
  options = options || {};

  let id = 'login_' + seed++

  instance = new LoginConstructor({
    data: options
  });
  instance.id = id;
  instance.$mount();
  document.querySelector('#app').appendChild(instance.$el);
  instance.visible = true
  instances.push(instance);
  return instance;
}

export default Login;